import os

lines = 0
comments = 0

for root, dirs, files in os.walk(os.path.abspath("..")):
    for name in files:
        if name[len(name) - 3:] == ".py":
            fname = os.path.join(root, name)
            f = open(fname)
            try:
                for line in f:
                    if line[0] == "#":
                        comments = comments + 1
                    else:
                        lines = lines + 1
            finally:
                f.close()
                
print "Entertainer has " + str(lines) + " lines of code."
print "Entertainer has " + str(comments) + " lines of comments."
